package com.education.platform.management.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
* describe: 修改密码
* @author : 
* @date: 2020-07-06 09:23:16.228
**/
@ApiModel()
@Getter
@Setter
@ToString
public class UpdatePwdVO {
    /**
     * 密码
     */
    @ApiModelProperty("新密码 ")
    @Pattern(regexp = "^[A-Za-z0-9]{6,12}$",message = "密码为6-12位数字或字母")
	private String newPassword;
    /**
     * 密码
     */
    @ApiModelProperty("原始密码 ")
    @NotBlank(message ="原始密码不能为空")
    private String oldPassword;


}
